According to the Ajax tag navigation Effect of yaohaixiao: http://www.blueidea.com/tech/web/2006/4144.asp.
Effect:
Http://www.lorlo.com/tab.html
Mainly changed JS:CopyCodeThe Code is as follows: Function GetObject (objectid ){If (document.
According to the Ajax tag navigation Effect of yaohaixiao: http://www.blueidea.com/tech/web/2006/4144.asp.Effect:Http://www.lorlo.com/tab.htmlMainly changed JS:Copy codeThe Code is as follows:Function getObject (objectId ){If (document.
1. the following code is used to determine whether a certain object has adequacy. If not, this encoding is added.
1
Tableelem
=
Document. getelementsbytagname (
"
Table
"
). Item (
0
);
2
NNM
=
Tableelem. attributes;
//
I want to read three values of XML in PHP
$url = "Http://www.cailele.com/static/ssc/newlyopenlist.xml";$doc = new DOMDocument ();$doc->load ($url); Reading an XML file$lst = $doc->getelementsbytagname (' Row ');for ($i =0; $i $iframe = $lst->item ($
Node Object properties
childnodes-returns the node list of nodes to child nodes
Firstchild-returns the first child node of the node.Lastchild-returns the last child node of a node.
nextsibling-returns the sibling node immediately following the
DOM to add elements and use node attributes Add an element to the DOM, use node attributes Item 1 [Ctrl + A select all Note: If you need to introduce external Js, You need to refresh it to execute]I. DOM Basics1. node
I. Dom Basics
1. node level
Document-the top-level node. All other nodes are attached to it.
Documenttype -- DTD reference (use syntax). It cannot contain subnodes.
Documentfragment -- other nodes can be saved like a document.
Element -- indicates
Core of DOM: NodeBecause Dom is a tree structure, a node is abstracted as an object node, which is the core object of DOM:There are 12 types of nodes, which are determined by the value of node. nodetype (1-12: JS
Code
Node. element_node (1)
/*Javascript Implementation of dom (basic)Author: shine*/Dom is a Document Object Model that defines methods and attributes for operating XML documents, but it is only a series of interfaces implemented by other languages, such as xerces in Java,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.